<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TotalData" targetNamespace="http://tempuri.org/TotalData.xsd" xmlns:mstns="http://tempuri.org/TotalData.xsd" xmlns="http://tempuri.org/TotalData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="PoserFilesConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="PoserFilesConnectionString (MySettings)" PropertyReference="ApplicationSettings.PoserFiles.My.MySettings.GlobalReference.Default.PoserFilesConnectionString" Provider="System.Data.OleDb">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TotalsTableAdapter" GeneratorDataComponentClassName="TotalsTableAdapter" Name="Totals" UserDataComponentName="TotalsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="PoserFilesConnectionString (MySettings)" DbObjectName="SELECT DISTINCT provider, code, price FROM Files" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     provider, SUM(price) AS total
FROM         (SELECT DISTINCT provider, code, price
                       FROM          Files) derivedtbl_1
GROUP BY provider
ORDER BY provider</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="provider" DataSetColumn="provider" />
              <Mapping SourceColumn="total" DataSetColumn="total" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="PoserFilesConnectionString (MySettings)" DbObjectName="SELECT DISTINCT provider, code FROM Files" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByTotalProducts" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetDataByTotalProducts" GeneratorSourceName="FillByTotalProducts" GetMethodModifier="Public" GetMethodName="GetDataByTotalProducts" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataByTotalProducts" UserSourceName="FillByTotalProducts">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     provider, COUNT(code) AS total
FROM         (SELECT DISTINCT provider, code
                       FROM          Files) derivedtbl_1
GROUP BY provider
ORDER BY provider</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="TotalData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="TotalData" msprop:Generator_DataSetName="TotalData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Totals" msprop:Generator_UserTableName="Totals" msprop:Generator_RowDeletedName="TotalsRowDeleted" msprop:Generator_TableClassName="TotalsDataTable" msprop:Generator_RowChangedName="TotalsRowChanged" msprop:Generator_RowClassName="TotalsRow" msprop:Generator_RowChangingName="TotalsRowChanging" msprop:Generator_RowEvArgName="TotalsRowChangeEvent" msprop:Generator_RowEvHandlerName="TotalsRowChangeEventHandler" msprop:Generator_TablePropName="Totals" msprop:Generator_TableVarName="tableTotals" msprop:Generator_RowDeletingName="TotalsRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="provider" msprop:Generator_UserColumnName="provider" msprop:Generator_ColumnPropNameInRow="provider" msprop:Generator_ColumnVarNameInTable="columnprovider" msprop:Generator_ColumnPropNameInTable="providerColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="75" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="total" msprop:Generator_UserColumnName="total" msprop:Generator_ColumnPropNameInRow="total" msprop:Generator_ColumnVarNameInTable="columntotal" msprop:Generator_ColumnPropNameInTable="totalColumn" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>